<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/EmptyPHPWebPage.php to edit this template
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
         $hostname="127.0.0.1";
          $username="root";
         $password="abc123";
         $database="mytest_sz";
         $conect=mysqli_connect($hostname,$username,$password,$database);
         if($conect){
         echo"mysql ok!";
         }else{
             echo"mysql连接失败!";
            }
            ?>
    </body>
</html>
